EXEC = portal
#CFLAGS += -I$(ROOTDIR)/lib/libnvram
#LDFLAGS += -L$(ROOTDIR)/lib/libnvram -l pthread -lnvram
LDFLAGS += -lpthread

all: $(EXEC)

$(EXEC): $(EXEC).c
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $@.c $(LDLIBS)

romfs:
	$(ROMFSINST) /bin/$(EXEC)

clean:
	-rm -f $(EXEC) *.elf *.gdb *.o

